import {BrowserRouter as Router,Route} from 'react-router-dom'
import Login from './pages/Login'
import LayoutHome from './pages/Layout'
import './App.scss'
const App=()=>{
return (
    <Router>
    <div className="app">
        {/* 一点进去默认是登录页 */}
        {/* <Route exact path='/' render={()=><Redirect to='/login'/>}></Route> */}
        <Route path='/login' component={Login}></Route>
        <Route path='/home' component={LayoutHome}></Route>
    </div>
    </Router>
)
}
export default App